//
//  UIColor+UIColor_kindsColor.m
//  SuoSiApp
//
//  Created by zhang on 16/5/24.
//  Copyright © 2016年 Ym. All rights reserved.
//

#import "UIColor+UIColor_kindsColor.h"

@implementation UIColor (UIColor_kindsColor)


+ (id) colorWithHex:(unsigned int)hex alpha:(CGFloat)alpha{
    
    return [UIColor colorWithRed:((float)((hex & 0xFF0000) >> 16)) / 255.0
                           green:((float)((hex & 0xFF00) >> 8)) / 255.0
                            blue:((float)(hex & 0xFF)) / 255.0
                           alpha:alpha];
    
}

+ (id) colorWithHex:(unsigned int)hex{
    return [UIColor colorWithHex:hex alpha:1];
}

@end
